﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;
using Engine.Sgml.Merging;

namespace Engine.Sgml.Assembling {
    [DebuggerDisplay("{Element}")]
    [StructLayout(LayoutKind.Auto)]
    internal struct UncompletedElement {
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private SElement element;
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private IList<SElement> createdElements;

        public UncompletedElement(SElement element) {
            Guard.ArgumentNotNull(element, "element");
            this.element = element;
            this.createdElements = null;
            }

        public SElement Element { get { return element; } }

        public IList<SElement> CreatedElements {
            get { return createdElements; }
            set { createdElements = value; }
            }
        }
    }
